package cn.jyc.ssm03.utils;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class LogBefore implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        String name = target.getClass().getName();
        System.out.println(name);
        String name1 = method.getName();
        System.out.println(name1);
        System.out.println(args);
    }
}
